#include <stdio.h>
#include <stdlib.h>

main()
{
	int vector[]={1, 2, 3, 4, 5};
	FILE *f = fopen("teste.bin", "wr");
	fwrite(vector, sizeof(int), 5 , f);
	fread(vector, sizeof(int), 5, f);
	int i;
	for(i=0;i<5;i++)
		printf("%d   ", vector[i]);




}


